package calcul.operation;

public class Rectangle extends Operator {

	@Override
	public double compute(double arg1, double arg2) {
		if(arg1<0||arg2<0){
			throw new IllegalArgumentException();
		}
		else{
			return arg1 * arg2;
		}
	}

}
